<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Public/title" />
    <style type="text/css">
        .search{float:right;margin-right:30px;}
    </style>
</head>

<body>
<div class="mainWrap">
    <!--标题-->
    <!-- <div class="mainWrapHeader">
        <h1 class="mainWrapTit">{$seotitle}
            <a href="{:U('add')}" class="btn btn_edit"><span>添加</span></a>
            <label class="search">
                <input type="text" name="key" id="key" value="{$key}" class="sys_text"/>
                <a href="javascript:;" class="btn btn_search" id="search_btn"><span>搜索</span></a>
            </label>
        </h1>
    </div> -->
    <!--标题-->
    
    <div class="mainWrapBd">
        
        <div class="mainListTit"><h3>
            <a href="javascript:;" class="listSearchTit" data-default='0'>搜索/筛选借款[<span>展开</span>]</a>
        </h3></div>
        
        <form style="display:none;" class="listSearchBox" action="index" method="get">
        <div class="mainWrapSerach">
            请选择所属分公司：
            <select name="branch_company">
                <option value="0">请选择所属分公司</option>
                <option value="1">慕斯（深圳）</option>
                <option value="2">慕斯（东莞）</option>
                <!-- <foreach name="citys" item="v">
                    <option value="<{$key}>" <if condition="$key eq $member[branch_company]">selected="selected"</if> ><{$v}></option>
                </foreach> -->
            </select>
            
            订单时间
            start:&nbsp&nbsp<input type="text" id="posttime1" class="sys_text ico-calendar" name="start_time" value=""/>&nbsp&nbsp
                     <script type="text/javascript">
                                date = new Date();
                                Calendar.setup({
                                    inputField     :    "posttime1",
                                    ifFormat       :    "%Y-%m-%d",
                                    showsTime      :    true,
                                    timeFormat     :    "24"
                                });
                    </script>
                 to:&nbsp&nbsp<input type="text" id="posttime2"  class="sys_text ico-calendar" name="end_time" value=""/>
                     <script type="text/javascript">
                                date = new Date();
                                Calendar.setup({
                                    inputField     :    "posttime2",
                                    ifFormat       :    "%Y-%m-%d",
                                    showsTime      :    true,
                                    timeFormat     :    "24"
                                });
                     </script>

            搜索关键字：
            <input type="text" class="sys_text" style="width:120px" name="real_name" value="<if condition='$condition2[key] neq null'><{$condition2.key}></if>" />
           
        </div>
        
        <table cellpadding="0" border="0" cellspacing="0" class="stdsearch">
            <tr>
                <td>
                    <input type="submit" class="submit" value="搜 索" name="submit"/>
                    <!-- <input type="submit" name="submit" class="reset" value="导 出" /> -->
                </td>
            </tr>
        </table>
        </form>

      <form>
        
        <form action="{:U('batchDo')}" method="post" name="doForm" onsubmit="return batchConfirm(this);">
        <!--列表-->
        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">
            <colgroup>
                <col style="width:50px;" />
                <col />
                <col />
                <col />
                <col />
                <col />
            </colgroup>
            <thead>
                <tr>
                    <th class="center">ID</th>
                    <th>订单号</th>
                    <th>公司简称</th>
                    <th>审核员</th>
                    <th>活动名称</th>
                    <th>门店</th>
                    <th>状态</th>
                    <th>城市合伙人</th>      
                    <th>添加时间</th>
                    <th>操作</th>
     
                </tr>
            </thead>
            <tbody>
                <volist name="pages['lists']" id="fo">
                <tr>
                    <td align="center">{$fo['id']}</td>
                    <td>{$fo['order_no']}</td>
                    <td>xx公司</td>
                    <td>
                        张三三
                    </td>
                    <td>项目活动一</td>               
                    <td>慕斯一店</td>
                    <td>进行中</td>
                    <td>赵格格</td>
                    <td>{$fo['add——time']|date="Y/m/d H:i",###}</td>
                    <td>
                        <a href="{:U('detail',array('id'=>$fo['id']))}">查看详情</a> &nbsp; 
                        <!-- <a href="{:U('delete',array('id'=>$fo['id']))}" onclick="return confirm('确认删除吗？')">删除</a> &nbsp; -->
                    </td>               
                    
                </tr>
                </volist>
                <if condition="$pages['total'] eq 0">
                <tr>
                    <td align="center" class="data-nothing" colspan="11">暂无相关信息</td>
                </tr>
                </if>
            </tbody>
        </table>
        <!--列表-->
        
        <!--工具-->
        <div class="tableTools clearfix">
            <div class="tableOptions fl">
            </div>
            <div class="fr">
                {$pages['show']}
            </div>
        </div>
        <!--工具-->
        </form>
        
    </div>
    
</div>
</body>
<script type="text/javascript">
    window.onload = function(){
        document.getElementById('search_btn').onclick = function(){
            var key = document.getElementById('key').value;
            location.href = "{:U('Seller/index')}?key=" + key;
        }
    }
</script>
</html>